Repository navigation
feat: add Algolia day-based fallback for Ask/Show feeds - #124
Merged
Merged
Conversation
therealsama
force-pushed
the
feat/ask-show-algolia-fallback
branch
from
May 29, 2026 07:18
88c54c5 to
6c6c711
Compare
When users exhaust the ~200 Firebase-ranked Ask/Show items, seamlessly continue loading older content day-by-day via Algolia (tags=ask_hn / tags=show_hn), mirroring the Top feed's historical fallback pattern. - Add fetchTaggedStoriesForDay generic helper + thin wrappers - Ask wrapper excludes hiring threads; Show wrapper has no exclusions - Add phaseRef to useInfiniteStories for firebase/algolia tracking - Intercept Firebase hasMore=false to transition seamlessly to Algolia - Algolia branch: day-loop with version guard per iteration, 5-day skip - Persist/restore phase in session state for back-nav correctness - Safety fallback for corrupt session blobs (position>200, no phase) - Add unit tests for API functions and integration tests for hook
therealsama
force-pushed
the
feat/ask-show-algolia-fallback
branch
from
May 29, 2026 07:35
6c6c711 to
53eb8ae
Compare
therealsama
enabled auto-merge
May 29, 2026 15:47
kplachkov
approved these changes
May 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When users exhaust the ~200 Firebase-ranked Ask/Show items, seamlessly continue loading older content day-by-day via Algolia (tags=ask_hn / tags=show_hn), mirroring the Top feed's historical fallback pattern.